import { EditColumns } from "@/api/interface/EditColumns";
import { UserAccount } from "./data";
import { formInputEvents } from "@/components/FormCreate/interface/input";
import { formFieldRule } from "@/components/FormCreate/interface/fieldRule";
import { DeepClone } from "@/utils/deepClone";
import fields = UserAccount.Fields;

//获取[修改表单]的formRules
//fapi文档：http://www.form-create.com/v3/instance.html
export const GetUpdateFormRule = (cols: EditColumns): EditColumns => {
//重写dic_value字段的rule
// let dicValueNewRule: formFieldRule = { title: "字典值1" };
// cols.resetFormRule(fields.dic_value, dicValueNewRule);

return DeepClone(cols);//需要深拷贝，form-create对象不能复用
};